//
//  HSCBannerView.h
//  BannerDemo
//
//  Created by 红沙尘 on 2018/12/14.
//  Copyright © 2018年 红沙尘. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HSCBannerItemView.h"

@class HSCBannerView;
@protocol HSCBannerViewDelegate <NSObject>

- (void)bannerView:(HSCBannerView *)view didSelectItem:(HSCBannerItemView *)itemView;

@end

@interface HSCBannerView : UIView

@property (nonatomic, weak) id <HSCBannerViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame
                       offset:(CGFloat)offset
                     dataList:(NSArray *)dataList
                     delegate:(id <HSCBannerViewDelegate>)delegate;

@end
